/**
  * Created by Joshua Conero(O'Uymas) on 2017/1/16 0016.
  * QQ: 957376074
  * E-mail: Brximl@163.com
  * 数据库基础类 - 用于数据库基础设置
  */
package conero.sql
trait DBase {
  // driver:String,dsn:String,username:String,pswd:String
  var driver = ""
  var dsn = ""
  var username = ""
  var password = ""
  // 数据库
  def connInit(dv:String="",idsn:String="",uname:String="",passw:String=""):Unit = {
    if(dv != "") driver = dv    //  驱动名称
    if(idsn != "") dsn = idsn   //  dsn
    if(uname != "") username = uname  //  用户名
    if(passw != "") password = passw  // 密码
  }
}
